// 用编译选项
#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void test1()
{
    vector<int> v = {1,3,6,12,3,1};
    int max = Solution().Max(v);
    if (max == 12)
    {
        std::cout << "测试通过" << std::endl;
    }
    else
    {
        std::cout << "用例1没有通过，测试值：v = {1,3,6,12,3,1}" << std::endl;
    }
}

void test2()
{
    vector<int> v = {-3,-6,-2,-5,-7};
    int max = Solution().Max(v);
    if (max == -2)
    {
        std::cout << "测试通过" << std::endl;
    }
    else
    {
        std::cout << "用例2没有通过，测试值：v = {-3,-6,-2,-5,-7}" << std::endl;
    }
}

int main()
{
    test1();
    test2();
}